library Wave12e initializer init requires LegacySystem

    private function Wave12e takes nothing returns nothing
        local integer i=1
        set udg_CurrentWave = 12
        call GenericActions.execute()
        loop
            exitwhen i>4
            call RandomSpawn('u00G',2,udg_Spawn) //Wraith #2
            call PolledWait(7.)
            set i=i+1
        endloop
        call RandomSpawn('z00C',2,GetRandomInt(0,1)) //Assasin
        call PolledWait(90.0*udg_Pace)
        call ExecuteRegisteredFunction("Wave13e")
    endfunction

    private function init takes nothing returns nothing
        call RegisterFunction("Wave12e", function Wave12e)
        // call ExecuteRegisteredFunction("Wave12e")
    endfunction

endlibrary

